
const state = {
  resource: [], // 列表数据
  newsList: [], // 资讯数据
  scrollTop: 0 // 滚动距离
}

const mutations = {
  setHomeData (state, data) {
    state.resource = data.resource
    state.newsList = data.newsList
    state.scrollTop = data.scrollTop
  }
}

export default {
  namespaced: true,
  state,
  mutations
}
